package com.zscat.mallplus.util;

/**
 * Created by Administrator on 2019/3/15 0015.
 */
public class CertTypeUtil {
    public static String getCertTypeCodeByName(String name) {
        if ("身份证".equalsIgnoreCase(name)) {
            return "A";
        } else if ("军官证".equalsIgnoreCase(name)) {
            return "C";
        } else if ("士兵证".equalsIgnoreCase(name)) {
            return "D";
        } else if ("军官离退休证".equalsIgnoreCase(name)) {
            return "E";
        } else if ("境外人员身份证明".equalsIgnoreCase(name)) {
            return "F";
        } else if ("外交人员身份证明".equalsIgnoreCase(name)) {
            return "G";
        } else if ("外国人永久居留身份证".equalsIgnoreCase(name)) {
            return "I";
        } else if ("港澳台居民居住证".equalsIgnoreCase(name)) {
            return "Q";
        }
        return "A";
    }
}